/*
 * FOF loading模块
 */
var loading = {
    option: {
        type: 'full'
    },
    start: function (option) {
        this.option = $.extend(this.option, option);
        if (this.option.type == 'full') {
            $('.loader').show();
        }
    },
    end: function (option) {
        this.option = $.extend(this.option, option);
        if (this.option.type == 'full') {
            $('.loader').hide();
        }
    }
};
for (var key in loading) {
    if (key) {
        exports[key] = loading[key];
    }
}